<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<button @click="changeImageShow()">切换元素的显示、隐藏</button>
			<img src="img/bg1.jpg" v-show="showImg"/>
		</div>
	</body>
	<script>
		var app=new Vue({
			el:"#app",
			data:{
				showImg:true
			},
			methods:{
				changeImageShow:function(){
					this.showImg=!this.showImg
				}
			}
		})
	
	
	</script>
</html>
